{% extends "base.html" %}
{% load i18n %}

{% block content %}


<form method="post" action="">
<h1>{% trans "login" %}</h1>
{% if error %}
<div class="error">
    {% trans "Your email and password don't match." %}
</div>
{% endif %}
<div class="fieldWrapper">
{{ form.username.errors }}
<label for="id_username">Email:</label>
{{ form.username }}
</div>
<div class="fieldWrapper">
{{ form.password.errors }}
<label id="id_passsword">{{ form.password.label_tag }}</label>
{{ form.password }}
</div>
<p>
<input type="submit" value='{% trans "login" %}' />
</p>
<input type="hidden" name="next" value="{{ next|escape }}" />
</form>
<div class="links">
    <span><a href="{% url signup %}">{% trans "signup" %}</a></span>|
    <span><a href="{% url getpassword %}">{% trans "forget password" %}</a></span>
</div>

{% endblock %}
